//
//  SetVM.swift
//  LeTu
//
//  Created by gy on 2023/12/7.
//

import Foundation

class SetVM {
    
    private(set) var items = [[ListSectionItem]]()
    
    init() {
        updateItems()
    }
    
    /// 更新页面数据
    func updateItems() {
        
        items = [[ListSectionItem(title: "语言选择".localized, content: LanguageManager.shared.currentLanguage == .zh ? "简体中文".localized:"英文".localized),
                  ListSectionItem(title: "账户信息".localized),
                  ListSectionItem(title: "账户安全".localized),],
                 [
                    ListSectionItem(title: "版本更新".localized, content: "v\(Device.getAppVersion())"),
                  ListSectionItem(title: "关于我们".localized)]]
        
    }
    
}

